package cn.itcast.dao;

import cn.itcast.domain.system.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserRepository extends JpaRepository<User,Integer> {
    @Query("from User where username = ?1")
    User findByUsername(String username);
}
